package com.dou.servier.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dou.dto.Dto;
import com.dou.entity.SeckillGoods;
import com.dou.service.RPCSeckillGoodsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (SeckillGoods)表服务实现类
 *
 * @author makejava
 * @since 2020-03-16 00:22:12
 */
@Service
public class SeckillGoodsServiceImpl implements SeckillGoodsService {
    @Reference
    private RPCSeckillGoodsService rpcSeckillGoodsService;

    @Override
    public SeckillGoods queryById(Integer id) {
        return null;
    }

    @Override
    public List<SeckillGoods> queryAllByLimit(int offset, int limit) {
        return null;
    }

    @Override
    public SeckillGoods insert(SeckillGoods seckillGoods) {
        return null;
    }

    @Override
    public SeckillGoods update(SeckillGoods seckillGoods) {
        return null;
    }

    @Override
    public boolean deleteById(Integer id) {
        return false;
    }
    @Override
    public Dto seckill(String token, int sId, int gId) {
        return rpcSeckillGoodsService.qiangGou(token, sId, gId);
    }

}